home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 8: LINUX Games / Linux Cubed Series 8 - LINUX Games.iso / games / video / zapem-0.000 / zapem-0 / zapem / palette.h < prev    next >
C/C++ Source or Header  |  1995-06-03  |  384b  |  21 lines

  1. #ifndef PAL_H
  2. #define PAL_H
  3.  
  4. class
  5. Palette
  6. {
  7. private:
  8.     unsigned char red[256],green[256],blue[256];
  9.     bool allocated[256];
  10. public:
  11.     Palette();
  12.     int request(int r, int g, int b);
  13.     void getData(int c, int &r, int &g, int &b);
  14.     void allocate(int c, int r, int g, int b);
  15.     bool getAlloc(int i);
  16.     void scan(byte *data, int len);
  17.     void remap(byte *data, int len, Palette& inpal);
  18. };
  19.  
  20. #endif
  21.